package com.yby.dome2;

/**
 * 园类
 */

public class Round {
    double radius;//半径
    double area;//面积
    double circumference;//周长

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public double getArea() {
        area = Math.PI * radius * radius;
        return area;
    }

    public double getCircumference() {
        circumference = 2 * Math.PI * radius;
        return circumference;
    }

}
